<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>中文字体问题</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2011-07-23 12:45:51 CST"/>
<meta name="author" content="Hu Wenbiao"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  p.verse { margin-left: 3% }
  pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
        font-size: 90%;
        overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top; }
  dt { font-weight: bold; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#ffff00;}
  .org-info-js_info-navigation { border-style:none; }
  #org-info-js_console-label { font-size:10px; font-weight:bold;
                               white-space:nowrap; }
  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                 font-weight:bold; }
  /*]]>*/-->
</style><link rel="stylesheet" href="/home/huwenbiao/note/Publish/style/emacs.css" type="text/css"/>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
 function CodeHighlightOn(elem, id)
 {
   var target = document.getElementById(id);
   if(null != target) {
     elem.cacheClassElem = elem.className;
     elem.cacheClassTarget = target.className;
     target.className = "code-highlighted";
     elem.className   = "code-highlighted";
   }
 }
 function CodeHighlightOff(elem, id)
 {
   var target = document.getElementById(id);
   if(elem.cacheClassElem)
     elem.className = elem.cacheClassElem;
   if(elem.cacheClassTarget)
     target.className = elem.cacheClassTarget;
 }
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
 <a accesskey="h" href="index.html"> UP </a>
 |
 <a accesskey="H" href="index.html"> HOME </a>
</div>

<h1 class="title">中文字体问题</h1>


<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 cjk和xelatex </a></li>
</ul>
</div>
</div>

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> cjk和xelatex </h2>
<div class="outline-text-2" id="text-1">

<p>安装的是telive2010。用xelatex编译文件。设置字体例子：
</p>


<pre class="src src-tex"><span style="color: #a020f0;">\documentclass</span>[<span style="color: #a0522d;">nofonts</span>]{<span style="color: #0000ff;">ctexart</span>}
<span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">document</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhsong}{SimSun}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\songti</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhsong}</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhhei}{SimHei}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\heiti</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhhei}</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhkai}{KaiTi_GB2312}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\kaishu</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhkai}</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhfs}{FangSong_GB2312}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\fangsong</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhfs}</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhfs}{LiSu}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\lishu</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhli}</span>}
<span style="color: #696969;">\setCJKfamilyfont</span>{zhfs}{YouYuan}
<span style="color: #a020f0;">\newcommand</span><span style="color: #a020f0;">*</span>{<span style="color: #0000ff;">\youyuan</span>}{<span style="color: #0000ff;">\CJKfamily</span><span style="color: #0000ff;">{zhyou}</span>}
<span style="color: #696969;">\setmainfont</span>{Times New Roman}
<span style="color: #696969;">\setCJKmainfont</span>{KaiTi_GB2312}
WHO AM I? &#25105;&#26159;&#35841;
<span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">itemize</span>}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\songti</span> &#25105;&#26159;&#23435;&#20307;}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\heiti</span> &#25105;&#26159;&#40657;&#20307;}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\kaishu</span> &#25105;&#26159;&#26999;&#20070;}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\fangsong</span> &#25105;&#26159;&#20223;&#23425;}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\lishu</span> &#25105;&#26159;&#38582;&#20070;}
<span style="color: #a020f0;">\item</span> {<span style="color: #696969;">\youyuan</span> &#25105;&#26159;&#24188;&#22278;}
<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">itemize</span>}

<span style="color: #696969;">\setCJKfamilyfont</span>{caiyun}{STCaiyun}
{<span style="color: #696969;">\CJKfamily</span>{caiyun}&#21326;&#25991;&#24425;&#20113;}

<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">document</span>}
</pre>



</div>
</div>
<div id="postamble">
<p class="author"> Author: Hu Wenbiao
<a href="mailto:linuxacm@gmail.com">&lt;linuxacm@gmail.com&gt;</a>
</p>
<p class="date"> Date: 2011-07-23 12:45:51 CST</p>
<p class="creator">HTML generated by org-mode 6.33x in emacs 23</p>
</div>
</div>
</body>
</html>
